<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:h="http://java.sun.com/jsf/html">
<h:head>
	<title>Login</title>
	<h:outputStylesheet library="css" name="style.css" />
</h:head>
<h:body>
	<c:if test="${userlogin ==null}">
		<div align="center">

			<h:form id="login_form" styleClass="logform">
				<h:panelGrid columns="3">
					<h:outputLabel value="Login" for="loginInput" />
					<h:inputText id="loginInput" value="#{loginBean.login}" />
					<h:message for="loginInput" />

					<h:outputLabel value="Password" for="passInput" />
					<h:inputSecret id="passInput" value="#{loginBean.password}" />
					<h:message for="passInput" />

					<h:outputText />
					<h:panelGrid columns="2">
						<h:commandButton action="#{loginBean.authorization}"
							value="login" />
							<h:link value="Haven't registered yet?" outcome="registration" />
					</h:panelGrid>
					<h:outputText />
				</h:panelGrid>
			</h:form>
			<br />
			<h:message styleClass="messages" for="login_form" />
			<br />

		</div>
	</c:if>
</h:body>
</html>
